#!/bin/bash
if [ "$ws_path" != "" ]; then
    echo "检测到工作空间目录:$ws_path"
else
    ws_path=$( cd "$( dirname "${BASH_SOURCE[0]}" )" && pwd )
    ws_path=$(dirname $ws_path)
    # 设置为全局变量
    export ws_path
    echo "设置工作空间目录:$ws_path"
fi
cd $ws_path
top -p $(cat train.pid)
